//package com.lhf.fvsmain.controller;
//
//import com.lhf.fvscommon.entity.SysUser;
//import com.lhf.fvscommon.result.Result;
//import com.lhf.fvssystem.service.SysUserService;
//import org.springframework.web.bind.annotation.*;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiResponse;
//import io.swagger.annotations.ApiResponses;
//
//import javax.annotation.Resource;
//
///**
// * 用户表(SysUser)表控制层
// *
// * @author lhf
// * @since 2020-10-26 10:55:44
// */
//@RestController
//@RequestMapping("sysUser")
//@Api(tags = "")
//public class SysUserController {
//    /**
//     * 服务对象
//     */
//    @Resource
//    private SysUserService sysUserService;
//
//    /**
//     * 通过主键查询单条数据
//     *
//     * @param id 主键
//     * @return 单条数据
//     */
//    @GetMapping("selectOne")
//    @ApiOperation(value = "查询", notes = "查询单条记录")
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "请求成功"),
//            @ApiResponse(code = 500, message = "服务端异常")
//    })
//    public Result<SysUser> selectOne(Long id) {
//        return Result.success(this.sysUserService.queryById(id));
//    }
//
//
//    @PostMapping("insert")
//    @ApiOperation(value = "添加", notes = "添加用户")
//    @ApiResponses({
//            @ApiResponse(code = 200, message = "请求成功"),
//            @ApiResponse(code = 500, message = "服务端异常")
//    })
//    public Result<SysUser> insert(@RequestBody SysUser entity) {
//        return Result.success(this.sysUserService.insert(entity));
//    }
//}